]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier: Clip all crosshair lines at even distances
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 6 Feb 2020 09:38:50 +0000 (10:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 7 Feb 2020 17:18:25 +0000 (18:18 +0100)
commitbda18888c054ec83ccf7a7f7121b9691e0b9bb97
tree72276523f21e44f18bad200c6a186815c94709df
parentc150fe95b9001545f73f1cc1baf55d033686d82c
magnifier: Clip all crosshair lines at even distances

If the crosshair is clipped so it doesn't cover the pointer cursor,
the clip rectangle is skewed towards the bottom/right. This was
made so to accomodate the default pointer, but the unevenness stays
on other pointer cursors, and it makes the crosshair look odd on
short crosshair length.

Make all lines clip to an even distance from the center instead.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/984
js/ui/magnifier.js